package com.moss.cloud.base.api.model.from;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
@Data
public class PositionFrom implements Serializable {
    private Long id;
    /**父级ID*/
    @NotNull(message = "父级ID不能为空")
    private Long parentId;
    /**职位名称*/
    @NotBlank(message = "职位名称不能为空")
    @Size(max = 120,message = "职位名称不能超过120个字符")
    private String positionName;
    /**职位说明*/
    @Size(max = 300,message = "职位说明不能超过300个字符")
    private String positionDesc;
    /**职位级别*/
    @NotNull(message = "职位级别不能为空")
    private Integer level;
    /**职位代号*/
    @NotBlank(message = "职位代号不能为空")
    @Size(max = 32,message = "职位代号不能超过32个字符")
    private String positionCode;
}
